{% extends "blog/index.html" %}

{% block title %}
所有分类 - 残阳似血的博客
{% endblock %}

{% block css %}
{% endblock %}

{% block js %}
{% endblock %}

{% block nav %}
	<li><a href="{% url program %}">首页</a></li>
	<li id="current"><a href="{% url program-categories %}">分类</a></li>
	<li><a href="{% url program-contact %}">留言板</a></li>
	<li><a href="{% url program-about %}">关于</a></li>
{% endblock nav %}

{% block content %}
    {% if cates %}
	    {% for cate in cates %}
		<h2><a href="{{ cate.get_absolute_url }}">{{ cate.name }}</a></h2> 
			<ul class="archive"> 
			{% if cate.articles %}
			    {% for article in cate.articles %}
				<li> 
					<div class="post-title"><a href="{{ article.get_absolute_url }}">{{ article.title }}</a></div> 
					<div class="post-details">发表于 {{ article.created|date:"Y年 bj日 P" }}</div> 
				</li>
				{% endfor %}
			{% endif %}
			</ul>
			<div class="navigation clear"> 
				<div><a href="{{ cate.get_absolute_url }}" >查看 &quot; {{ cate.name }} &quot; 下更多文章 &raquo; </a></div> 
			</div> 
		{% endfor %}
	{% endif %}
{% endblock %}